<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:loc="clr-namespace:Jerry.DroidBuilder"
  xmlns:local="clr-namespace:Jerry.DroidBuilder">
  <DataTemplate DataType="{x:Type local:UpdateReferenceViewModel}">
    <Grid Margin="8">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
      </Grid.RowDefinitions>
      <StackPanel Grid.Row="0">
        <TextBlock Text="Directory to update:"/>
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
          </Grid.ColumnDefinitions>
          <TextBox Grid.Column="0" Text="{Binding TargetDirectory, Mode=TwoWay}"/>
          <Button Grid.Column="1" Content="Browse..." Command="{Binding BrowseDirectoryCommand}"/>
        </Grid>

        <TextBlock Text="Original resource definition file:"/>
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
          </Grid.ColumnDefinitions>
          <TextBox Grid.Column="0" Text="{Binding OriginalDefinition, Mode=TwoWay}"/>
          <Button Grid.Column="1" Content="Browse..." Command="{Binding BrowseOriginalDefinitionCommand}"/>
        </Grid>

        <TextBlock Text="Target resource definition file:"/>
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
          </Grid.ColumnDefinitions>
          <TextBox Grid.Column="0" Text="{Binding TargetDefinition, Mode=TwoWay}"/>
          <Button Grid.Column="1" Content="Browse..." Command="{Binding BrowseTargetDefinitionCommand}"/>
        </Grid>

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0">
          <CheckBox Content="Check this to only do a search without any replacement." IsChecked="{Binding IsSearchOnly, Mode=TwoWay}"/>
          <Button Content="Start" Padding="8,2" Command="{Binding SearchCommand}"/>
        </StackPanel>
      </StackPanel>
      <Grid Grid.Row="1">
        <TextBox Text="{Binding Output}" FontFamily="Lucida Console" IsReadOnly="True" VerticalScrollBarVisibility="Visible"/>
      </Grid>
    </Grid>
  </DataTemplate>
</ResourceDictionary>